package com.lottery.football.util;

import java.util.HashMap;
import java.util.Map;

public class Constants
{
	public static final String GBK = "GBK";
	
	public static final String UTF8 = "UTF-8";
	
	public static final String GB2312 = "GB2312";
	
	public static final String ISO85991 = "ISO-8859-1";
	
	public static final String HISTORY_PAGE_SURFIX = "history/1/1/";
	
	private static Map<String, Integer> ORDER_TYPE_MAP = null;

	private static Map<String, Integer> ORDER_STATUS_MAP = null;
	
	
	public static Map<String, Integer> getOrderTypeMap()
	{
		if (ORDER_TYPE_MAP == null)
		{
			//订单类型  1:买家单式合买/2:买家复式合买/3:个人推荐/4:媒体推荐
			ORDER_TYPE_MAP = new HashMap<String, Integer>(4);
			ORDER_TYPE_MAP.put("单式合买", 1);
			ORDER_TYPE_MAP.put("复式合买", 2);
			ORDER_TYPE_MAP.put("个人推荐", 3);
			ORDER_TYPE_MAP.put("媒体推荐", 4);
		}
		
		return ORDER_TYPE_MAP;
	}
	
	public static Map<String, Integer> getOrderStatusMap()
	{
		if (ORDER_STATUS_MAP == null)
		{
			//订单状态  1:撤单/2:成功/3:进行中
			ORDER_STATUS_MAP = new HashMap<String, Integer>();
			ORDER_STATUS_MAP.put("已撤单", 1);
			ORDER_STATUS_MAP.put("已成功", 2);
			ORDER_STATUS_MAP.put("进行中", 3);
		}
		
		return ORDER_STATUS_MAP;
	}
	
}
